TEMPLATE      = lib
CONFIG       += qt plugin warn_off
QT += opengl

INCLUDEPATH  += ../..
HEADERS       = proteinrendercontrol.h proteinrenderer.h
SOURCES       = proteinrendercontrol.cpp proteinrenderer.cpp
FORMS		  = proteinrendercontrol.ui
TARGET        = $$qtLibraryTarget(proteinrenderer)
DESTDIR       = ../../../plugins

macx:LIBS += ../../data/libdata.a ../../math/libmath.a \
				../../renderer/librenderer.a ../../datamanager/libdatamanager.a \
				-framework GLUT

INCLUDEPATH += ../../contrib/glut

macx {
		INCLUDEPATH += ../../contrib/macx/glew/include
		DEFINES += MACX_DEV __GNU__
}

linux:LIBS 	 += -L../../contrib/linux/glew/lib -lGLEW \
				-L../../datamanager -ldatamanager -L../../shape -lshape \ 
				-L../../data -ldata -L../../math -lmath -L../../renderer -lrenderer
linux {
	INCLUDEPATH += /home/xyzhang/src/glut-3.7/include/GL ../../contrib/linux/glew/include
	DEFINES += __GNU__
	}
	
# install
# target.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaint/plugins
# sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS extrafilters.pro
# sources.path = $$[QT_INSTALL_EXAMPLES]/tools/plugandpaintplugins/extrafilters
# INSTALLS += target sources
